package com.leon.workenginespace.learnjava;

/**
 * @description: TODO
 * @author: WT
 * @date: 2024/3/14 23:59
 * @Version 1.0
 **/
public class MyThread extends Thread {
    @Override
    public void run() {
        int n = 0;
        while (! isInterrupted()) {
            n ++;
            System.out.println(n + " hello!");
        }
    }
}